import {get, post} from '../request'

// 获取图书列表
export const getBookByPage = params => {
    return post({
		url: '/book/page',
        params,
		loading: true
    })
}
// 新增图书

export const addBook = params => {
    return post({
		url: '/book/add',
        params,
		loading: true
    })
}
// 删除图书
export const deleteBook = params => {
    return post({
		url: '/book/delete',
        params,
		loading: true
    })
}
// 修改图书
export const updateBook = params => {
    return post({
		url: '/book/update',
        params,
		loading: true
    })
}